<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Wuliu/index')}">列表</a></li>
        <li class="active"><a>编辑</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Wuliu/editPost')}">
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 类别:</label>
            <div class="col-md-6 col-sm-10">
                <select name="wuliutype" class="form-control">
                    <option value="">请选择</option>
                    <option
                    <if isset($vo.wuliutype)&&$vo.wuliutype=='1'>selected</if>
                    value="1">销售</option>
                    <option
                    <if isset($vo.wuliutype)&&$vo.wuliutype=='2'>selected</if>
                    value="2">采购</option>
                    <option
                    <if isset($vo.wuliutype)&&$vo.wuliutype=='3'>selected</if>
                    value="3">其他</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 用途类型:</label>
            <div class="col-md-6 col-sm-10">
                <select name="c_type" class=" form-control selectpicker" data-live-search="true">
                    <volist name="c_type_arr" id="ao">
                        <option
                        <if isset($vo.c_type)&&$vo.c_type==$ao.id>selected</if>
                        value="{$ao.id}">{$ao.name}</option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 日期:</label>
            <div class="col-md-6 col-sm-10">
                <input autocomplete="off" type="text" class="form-control js-date" name="newdate"
                       value="{:date('Y-m-d',$vo['newdate'])}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 起始地:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="start_address"
                       value="{$vo.start_address|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 目的地:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="end_address"
                       value="{$vo.end_address|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 货物名称:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="name" value="{$vo.name|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 平台类型:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="platform_type"
                       value="{$vo.platform_type|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 车辆类型:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="car_type"
                       value="{$vo.car_type|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 包车类型:</label>
            <div class="col-md-6 col-sm-10">
                <select name="wuliutype" class="form-control">
                    <option value="">请选择</option>
                    <option
                    <if isset($vo.wuliutype)&&$vo.wuliutype=='1'>selected</if>
                    value="1">包车</option>
                    <option
                    <if isset($vo.wuliutype)&&$vo.wuliutype=='2'>selected</if>
                    value="2">拼车</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 合同号:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="ht_number"
                       value="{$vo.ht_number|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 规格:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="specs" value="{$vo.specs|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 重量(吨):</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="weight" value="{$vo.weight|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 金额:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="money" value="{$vo.money|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 是否完结:</label>
            <div class="col-md-6 col-sm-10">
                <select name="is_end" class="form-control">

                    <option
                    <if isset($vo.is_end)&&$vo.is_end=='1'>selected</if>
                    value="1">未完结</option>
                    <option
                    <if isset($vo.is_end)&&$vo.is_end=='2'>selected</if>
                    value="2">已完结</option>

                </select>

            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 是否结算:</label>
            <div class="col-md-6 col-sm-10">

                <select name="is_settle" class="form-control">

                    <option
                    <if isset($vo.is_settle)&&$vo.is_settle=='1'>selected</if>
                    value="1">未结算</option>
                    <option
                    <if isset($vo.is_settle)&&$vo.is_settle=='2'>selected</if>
                    value="2">已结算</option>

                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 备注:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="remrk" value="{$vo.remrk|default=''}">
            </div>
        </div>

        <div class="col-sm-offset-2 col-sm-10">
            <input type="hidden" name="id" value="{$vo.id}"/>
            <button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
            <a class="btn btn-default" href="{:url('Wuliu/index')}">返回</a>
        </div>
    </form>

</div>
<script src="/static/js/admin.js"></script>
<script src="/static/js/layer/layer.js"></script>
<script>
    {
        $jsTpl
    }
</script>
</body>
</html>